//package com.wx_shop.web.houtai.Controller.LoginController;
//
//
//import com.alibaba.fastjson.JSONObject;
//import com.wx_shop.web.houtai.utiltools.UploadFile;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//
//
//@RestController
//@RequestMapping("/login")
//@CrossOrigin
//public class LoginController {
//
//    private static Logger logger = LoggerFactory.getLogger(LoginController.class);
//
//    @Autowired
//    private shopkeeperMapper shopkeeperMapper;
//
//    @Autowired
//    private UploadFile uploadFile;
//
//    @PostMapping("check")
//    public JSONObject checkUser(@RequestParam("username") String username,
//                          @RequestParam("password") String userpass){
//
//        System.out.println(username+"-----"+userpass);
//
//        JSONObject json = new JSONObject();
//
//        shopkeeper sho = new shopkeeper();
//        sho = shopkeeperMapper.SelectByUsernane(username,userpass);
//        if(sho == null){
//            json.put("result","FALSE");
//        }else{
//            json.put("result","SUCCESS");
//        }
//        json.put("shopkeeperinfo",sho);
//
//        return json;
//    }
//
//
//
//}
